<?php
namespace api\home\controller;

use cmf\controller\RestUserBaseController;
use app\common\logic\home\Lesson;
use app\common\model\RemindModel;
use app\common\logic\Qiniu;
use app\common\logic\home\ImageApi;

//课程信息
class LessonController extends RestUserBaseController
{
	
	public function index(Lesson $Lesson){
		$Lesson->index($this->userId);
	}
	//判断是否有 需要人脸识别 但未上传图形的情况
	public function check111(){
		$status = RemindModel::where('user_id',$this->userId)->order('create_time desc')->value('status');
		$this->success('',$status);
	}
	//添加素材
	public function adds111(Lesson $Lesson){
		$Lesson->adds($this->userId);
	}
	
}
